import axios from '@/libs/api.request'

/**
 * 获取子弹图数据
 * @return {[type]}        [description]
 */
export const fetchTableData = (params) => {
  return axios.request({
    url: '/api/tableGas/getMeterPagedByGasClass',
    method: 'get',
    params
  })
}

/**
 * 获取子弹图数据
 * @return {[type]}        [description]
 */
export const fetchZidanData = (params) => {
  return axios.request({
    url: '/api/tableGas/getGasCountByGasClass',
    method: 'get',
    params
  })
}

/**
 * 获取雨量图数据
 * @return {[type]}        [description]
 */
export const fetchRainData = (params) => {
  return axios.request({
    url: '/api/tableGas/getGasByDay',
    method: 'get',
    params
  })
}

/**
 * 获取热力图数据
 * @return {[type]}        [description]
 */
export const fetchHeatMapData = (params) => {
  return axios.request({
    url: '/api/tableGas/getMeterGasCountByDay',
    method: 'get',
    params
  })
}

/**
 * 表格数据修改
 * @param  {[type]} params [description]
 * @return {[type]}        [description]
 */
export const fetchMeterUnitDetail = (id) => {
  return axios.request({
    url: '/api/meterManage/meyerQuery/getMeterUnitDetail/' + id,
    method: 'get'
  })
}
